package com.mall.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @description: 评论VO
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/27 20:20
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "评论VO")
public class ReviewVO {
    @Schema(description = "评论id")
    private Long id;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "商品id")
    private Long itemId;
    @Schema(description = "订单id")
    private Long orderId;
    @Schema(description = "评分 1-5")
    private Integer rating;
    @Schema(description = "评论内容")
    private String comment;
    @Schema(description = "评论图片")
    private String image;
    @Schema(description = "评论时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String createTime;
    @Schema(description = "用户名")
    private String username;
}
